package com.ayoka.parenting.ui.login;

import android.support.v4.app.DialogFragment;

import com.ayoka.parenting.bean.BaseResponse;
import com.ayoka.parenting.bean.NVCBean;
import com.ayoka.parenting.interf.RequestCallback;
import com.ayoka.parenting.mvp.BasePresenter;
import com.ayoka.parenting.mvp.BaseView;

/**
 * @ProjectName: MVPPlugin.
 * @ClassName: LoginContract.
 * @Description: .
 * @Author: jincp.
 * @CreateDate: 2019/10/10 18:17.
 */
public class LoginContract {

    public interface View extends BaseView {

        void onSendVerifyCodeCallback(NVCBean nvcBean);

        void onLoginCallback(NVCBean data);

        void onDialogDismiss(DialogFragment dialog);
    }

    interface Presenter extends BasePresenter<View> {
    }

    interface Model {

        void sendVerifyCode(BasePresenter presenter, String params, String mobile, RequestCallback<BaseResponse<NVCBean>> callback);

        void login(BasePresenter presenter, String token, String mobile, String verifyCode, RequestCallback<BaseResponse<NVCBean>> callback);
    }
}
